<div class="blogs form">
<div class="l-curve-top">
		<div class="r-curve-top">
			<div class="top-bg"></div>
							</div>
						</div>
						<div class="shad-bg-lft clearfix">
							<div class="shad-bg-rgt">
								<div class="shad-bg">
		
    <div class="main-section js-corner round-5">
	<div class="clearfix">
	<div class="clearfix user-profile-block user-profile-block1">
	<h2><?php echo __l('Add New Update');?></h2>
	<div class="profile-image">
    <?php if(!empty($project)){
		 echo $this->Html->link($this->Html->showImage('Project', $project['Attachment'], array('dimension' => 'big_thumb', 'alt' => sprintf(__l('[Image: %s]'), $this->Html->cText($project['Project']['name'], false)), 'title' => $this->Html->cText($project['Project']['name'], false)),array('aspect_ratio'=>1)), array('controller' => 'projects', 'action' => 'view',  $project['Project']['slug'], 'admin' => false), array('escape' => false));?>
	    	 <h3><?php echo $this->Html->link($this->Html->cText($project['Project']['name'],false),array('controller' => 'projects', 'action' => 'view',  $project['Project']['slug'], 'admin' => false), array('escape' => false));?></h3>
	 <?php }?>
      </div>
      </div>
	 <div class="blog-updates grid_17">
        <?php echo $this->Form->create('Blog', array('class' => 'normal grid_14')); ?>
        	<fieldset>
                    <?php
                    if ($this->Auth->user('user_type_id') == ConstUserTypes::Admin) :
						echo $this->Form->input('project_id', array('label' => __l('Project')));
                    else :
                    	echo $this->Form->input('project_id', array('type' => 'hidden'));
                    endif;
                    echo $this->Form->input('title', array('label' => __l('Title')));
                    echo $this->Form->input('content', array('class' => 'js-editor', 'label' => __l('Description')));
                    echo $this->Form->input('tag', array('info' => __l('Separate tags with commas')));?>
                  <div class="submit-block clearfix"> <?php  echo $this->Form->submit(__l('Publish'), array('name' => 'data[Blog][publish]')); ?> </div>
                   <?php echo $this->Form->end(); ?>
        	</fieldset>
		   </div>
		</div>
    </div>
    </div>
    </div>
    </div>
				<div class="l-curve-bot">
							<div class="r-curve-bot">
									<div class="bot-bg"></div>
							</div>
						</div>
			
</div>
